package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiModuleMessage;

public class Mmochat_SendSystenMsgToOtherServer extends SkymobiModuleMessage {
	String sysInfo;

	public Mmochat_SendSystenMsgToOtherServer() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_SEND_SYSTEMMSG_TO_OLDSERVER);
	}

	public Mmochat_SendSystenMsgToOtherServer(int dstId) {
		setDstId(dstId);
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_SEND_SYSTEMMSG_TO_OLDSERVER);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		sysInfo = in.getPrefixedString(2);
	}

	@Override
	protected void encodeBody(SkymobiBuffer out) {
		out.putPrefixedString(sysInfo, 2);
	}

	public String getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(String sysInfo) {
		this.sysInfo = sysInfo;
	}

}
